﻿using BCDto.Sim.Admin.Admin;
using BCDto.Sim.Admin.AdminPermissionRecord;
using System.Collections.Generic;

namespace BCService.Sim.Admin.DepartmentPermissionRecord
{
    /// <summary>
    /// 员工权限记录
    /// </summary>
    public interface IDepartmentPermissionRecordService
    {
        /// <summary>
        /// 添加部门权限记录
        /// </summary>
        /// <param name="requestDto">员工权限记录</param>
        /// <returns></returns>
        AdminPermissionRecordDto Setting(DepartmentPermissionRecordRequestDto requestDto);
        /// <summary>
        /// 获取部门权限记录列表
        /// </summary>
        /// <param name="departmentId">部门Id</param>
        /// <returns></returns>
        IEnumerable<AdminPermissionRecordDto> GetList(int departmentId);

        /// <summary>
        /// 删除部门权限
        /// </summary>
        /// <param name="admin">当前登录员工</param>
        /// <param name="departmentId">部门Id</param>
        /// <param name="operationPermission">权限信息</param>
        void DeleteDepartmentPermission(AdminDto admin, int departmentId, string operationPermission);
    }
}
